home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.m68k
- Path: in1.uu.net!tron!usenet
- From: gibson.w.e@wec.com (White Gibson)
- Subject: Re: 332 Interrupt programming
- Sender: usenet@tron.bwi.wec.com (USEnet News Poster)
- Message-ID: <DprozK.1CD@tron.bwi.wec.com>
- Date: Fri, 12 Apr 1996 20:59:44 GMT
- X-Nntp-Posting-Host: mbsh28.bwi.wec.com
- References: <1996Apr5.074626.7525@schbbs.mot.com>
- Mime-Version: 1.0
- Organization: Westinghouse Electric Corp.
- X-Newsreader: WinVN 0.99.2
-
- In article <1996Apr5.074626.7525@schbbs.mot.com>, TTZ398@waccvm.corp.mot.com
- says...
- >
- >------------------------- Original Article -------------------------
- >wbortz@gpu.srv.ualberta.ca (Wade Bortz) wrote:
- >
- >> I've been struggling with this for a month or so now - can anyone
- >>recomend some resources which would explain interrupt programming on the
- >>332 in C? Motorola has not been of much help, neither has SDSI, whose C
- >>compiler I am using.
- >> I want to run an interrupt function once every second. I'm using
- >>the #pragma interrupt compiler directive for the function, and have set
- >>PICR and PITR, and loaded the address of my interrupt function into the
- >>proper vector in the exception table. What am I missing here? Any help
- >>would be greatly appreciated.
- >
- >You should get hold of the Motorola application note 'Using the
- >MC68332 Periodic Interrupt Timer', order code AN437/D. It covers
- >exactly what you want - you just have to change the Introl C special
- >directive for an exception handler to the pragma etc. required for
- >your compiler.
- >
- >Hope this helps,
- >Mark
- >
-
- This is probably a stupid question, but did you change the processing level
- so that you interrupts could be processed? The '332 boots to level 7 and
- will only answer "non-maskable" interrupts at this level (IRQ7). If you set
- your real-time interrupt at a lower interrupt level and did not change the
- processing level it will not respond to these interrupts.
-
- Hope this helps ...
-
- White Gibson | The opinions expressed in this article are those of the
- gibsonwe@wec.com | author, for what that's worth.
-
-